module.exports = app => {
    const { BOOLEAN, STRING, INTEGER, DATE } = app.Sequelize;

    const Prize = app.model.define('prize', {
        id: {
            type: INTEGER,
            primaryKey: true,
            autoIncrement: true,
        },
        name: STRING(500),
        types: INTEGER, // 0=特等奖,1=一等奖,2=二等奖,3=三等奖,4=四等奖,5=参与奖
        num:INTEGER,
        usenum:INTEGER,
        created_at: DATE,
        updated_at: DATE
    });

    return Prize;
};